using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using System.Windows.Forms;

namespace p301.BO.KPO.Find
{
    public partial class printKpoFind : DevExpress.XtraReports.UI.XtraReport
    {
        int _iNPP;

        public printKpoFind()
        {
            InitializeComponent();
            _Caption.Text += " " + DateTime.Today.ToShortDateString();
            _iNPP = 1;
        }

        public void Open(BindingSource bsKpoFind)
        {
            this.DataSource = bsKpoFind;
            this.ShowPreview();
        }

        private void _NPP_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            _NPP.Text = _iNPP.ToString();
            _iNPP++;
        }
    }
}
